fit in (someone's) shoes

Translations
se mettre à la place de quelqu’un
Definitions
To imagine oneself in another person's situation or to understand what it is like to be that person, often in order to empathize with their feelings or experiences.